<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>better-scroll</title>
		<style type="text/css">
			*{
				padding: 0;
				margin: 0;
			}
			html,body{
				height: 100%;
				overflow: hidden;
			}
			.wrap{
				height: 100%;
				overflow: hidden;
			}
			.wrap li{
				height: 50px;
				line-height: 50px;
				font-size: 16px;
				border-bottom: 1px solid #ccc;;
			}
		</style>
	</head>
	<body>
		<div class="wrap">
			<ul></ul>
		</div>
		
		<script src="bscroll.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			(function(){
				let wrap = document.querySelector('.wrap');
				let oUl = wrap.querySelector('ul')
				for (var i = 0; i < 100; i++) {
					var el = document.createElement('li')
					el.innerHTML = i;
					oUl.appendChild(el)
				}
				
				var bScroll = new BScroll(wrap,{
					momentum:true	// 开启滚动动画
				})
			})()
		</script>
	</body>
</html>
